//
//  SeeOtherFeeCell.m
//  NtoccShipper
//
//  Created by mac on 2020/1/2.
//  Copyright © 2020 zhuchongjin. All rights reserved.
//

#import "SeeOtherFeeCell.h"
@interface SeeOtherFeeCell()
@property (nonatomic,strong) CJLabel *labPayType;
@property (nonatomic,strong) CJLabel *labPayMoney;
@property (nonatomic,strong) CJLabel *labFeeType;

@property (nonatomic,strong) CJLabel *labRemark;


@end
@implementation SeeOtherFeeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellInfoWithDic:(NSDictionary *)dic{
    
   
    self.labPayMoney.text = CJStringWithFormat(@"%@",dic[@"extraFeeAmount"]);
    self.labFeeType.text = CJStringWithFormat(@"%@",dic[@"extraFeeName"]);
    
    if ([CJStringWithFormat(@"%@",dic[@"extraPayType"]) isEqualToString:@"0"]) {
        // 收入
        self.labPayMoney.textColor = [UIColor cjMainColorText];
        self.labPayMoney.text = CJStringWithFormat(@"%@",dic[@"extraFeeAmount"]);
         self.labPayType.text = @"收入";
    }else if ([CJStringWithFormat(@"%@",dic[@"extraPayType"]) isEqualToString:@"1"]){
        self.labPayMoney.textColor = [UIColor cjRedColor];
        self.labPayMoney.text = CJStringWithFormat(@"-%@",dic[@"extraFeeAmount"]);
        self.labPayType.text = @"支出";

    }
    self.labRemark.text = dic[@"extraFeeRemark"];
}


@end
